<include file="header"/>

        <script type="text/javascript">
            verifyURL = '{:U("/Home/Index/verify",'','')}';
            function change_code(obj) {
                $("#code").attr("src", verifyURL + '/' + Math.random());
                return false;
            }
        </script>
        <style>
            .panel{ max-width: 500px;margin: 0 auto;margin-top: 10px;}
            .input-group{ max-width: 95%;margin: 0 auto;margin-top: 10px;}
            .code{margin-left: 20px;margin-top: 10px;margin-bottom: 10px;}
        </style>
    </head>
    <body>
        <div class="panel">
            <form role="form" action='{:U("Home/Index/checkLogin")}' method="post">
             <div class='panel-heading'>用户登陆</div>
            <section id='input-groups' class="page-section">

                <div class="input-group">
                  <span class="input-group-addon"><i class='icon-user'></i></span>
                    <input type="text"  name="user" class="form-control" required='required' placeholder="请输入用户名">
                  <span class="glyphicon glyphicon-star"></span>
                </div>
                
                <div class="input-group">
                  <span class="input-group-addon"><i class="icon-key"></i></span>
                    <input type="password"  name="pwd" class="form-control"required='required' placeholder="请输入密码">
                  <span class="glyphicon glyphicon-star"></span>
                </div>
                
                <div class="input-group">
                  <span class="input-group-addon"><i class="icon-chevron-down"></i></span>
                    <input type="text"  name="code" class="form-control"required='required' placeholder="请输入验证码">
                  <span class="glyphicon glyphicon-star"></span>
                </div>
                 <div class="code"> 
                    <img src="{:U('Home/Index/verify')}"onClick="change_code(this)" id="code"/>
                </div>
            
                
                <div class="code">
                    <input type="submit" value='登陆' class="btn btn-primary" />
                    &nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value='清空' class="btn btn-warning" />
                </div>
            </section>
               
            </form>
        </div>
    

    </body>
</html>


